package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NanDongCommitteeScoreRowMapper implements RowMapper<NanDongCommitteeScore> {
    @Override
    public NanDongCommitteeScore mapRow(ResultSet resultSet, int i) throws SQLException {
        NanDongCommitteeScore nd = new NanDongCommitteeScore();
        nd.setCommittee(resultSet.getString("committee"));
        nd.setQuarter_score(resultSet.getString("quarter_score"));
        nd.setCensus_hu(resultSet.getString("census_hu"));
        nd.setCensus_person_number(resultSet.getString("census_person_number"));
        nd.setExtraneous_person(resultSet.getString("extraneous_person"));
        nd.setOfter_person(resultSet.getString("ofter_person"));
        nd.setXh_person(resultSet.getString("xh_person"));
        nd.setZq_person(resultSet.getString("zq_person"));
        nd.setAk_person(resultSet.getString("ak_person"));
        nd.setYg_person(resultSet.getString("yg_person"));
        nd.setGrade(resultSet.getString("grade"));
        nd.setEvaluate(resultSet.getString("evaluate"));
        return nd;
    }
}
